import request from '@/utils/request'

// 查询设备组信息列表
export function listMachinetable(query) {
  return request({
    url: '/rescheduling/machinetable/list',
    method: 'get',
    params: query
  })
}

// 查询设备组信息详细
export function getMachinetable(workarea) {
  return request({
    url: '/rescheduling/machinetable/' + workarea,
    method: 'get'
  })
}

// 新增设备组信息
export function addMachinetable(data) {
  return request({
    url: '/rescheduling/machinetable',
    method: 'post',
    data: data
  })
}

// 修改设备组信息
export function updateMachinetable(data) {
  return request({
    url: '/rescheduling/machinetable',
    method: 'put',
    data: data
  })
}

// 删除设备组信息
export function delMachinetable(workarea) {
  return request({
    url: '/rescheduling/machinetable/' + workarea,
    method: 'delete'
  })
}
